package boxuegu.com.boxuegu3.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.List;

import boxuegu.com.boxuegu3.R;
import boxuegu.com.boxuegu3.bean.ExercisesBean;

public class ExercisesDetailAdapter extends BaseAdapter {
    private List<ExercisesBean> beans;//题目集合
    private Context context;//上下文

    public ExercisesDetailAdapter() {
        super();
    }

    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        //listview通过执行这个方法来显示数据到屏幕上，执行一次就显示一行
        LayoutInflater layoutInflater=LayoutInflater.from(context);
        convertView=layoutInflater.inflate(R.layout.exercises_detail_list_item,null);//加载一个选择题的行布局文件，生成行view控件


        return convertView;
    }
}
